import 'package:flutter/material.dart';
import "package:get/get.dart";

class ReviewDetail extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          backgroundColor: Color(0xffffffff),
          centerTitle: true,
          leadingWidth: 40,
          title: Text('详情'),
          leading: IconButton(
            onPressed: () {
              Get.back();
              print('object');
            },
            icon: Image.asset('static/images/back.png'),
          ),
        ),
        body: Padding(
          padding: EdgeInsets.symmetric(horizontal: 15),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              Container(
                padding: EdgeInsets.symmetric(horizontal: 10, vertical: 10),
                decoration: BoxDecoration(
                    borderRadius: BorderRadius.circular(10),
                    border: Border.all(color: Color(0XFFDDDDDD))),
                child: Row(
                  children: [
                    ClipRRect(
                      borderRadius: BorderRadius.circular(25), // 设置圆角大小
                      child: Image.asset(
                        'static/aaa.png',
                        width: 25,
                        height: 25,
                        fit: BoxFit.fill,
                      ),
                    ),
                    SizedBox(
                      width: 10,
                    ),
                    Column(
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: [
                        Text(
                          '策划人要拥',
                          style: TextStyle(
                            fontSize: 14,
                            fontWeight: FontWeight.bold,
                            overflow: TextOverflow.ellipsis,
                          ),
                        ),
                        Text(
                          '奖励：233ST',
                          style:
                              TextStyle(fontSize: 12, color: Color(0XFF999999)),
                        ),
                      ],
                    ),
                    Expanded(child: SizedBox()),
                    Text(
                      '待审核',
                      style: TextStyle(fontSize: 12, color: Color(0XFF999999)),
                    ),
                  ],
                ),
              ),
              SizedBox(
                height: 15,
              ),
              Text(
                '策划人要拥有的14张推广排期表！高质量！',
                style: TextStyle(fontSize: 12),
              ),
              SizedBox(
                height: 5,
              ),
              ClipRRect(
                borderRadius: BorderRadius.circular(5.0), // 设置圆角大小
                child: Image.asset(
                  'static/aaa.png',
                  width: 110,
                  height: 150,
                  fit: BoxFit.fill,
                ),
              ),
              Container(
                margin: EdgeInsets.only(top: 10, bottom: 10),
                padding:
                    EdgeInsets.only(top: 1, bottom: 1, right: 10, left: 10),
                decoration: BoxDecoration(
                  color: Color(0xffF3EEFF),
                  borderRadius: BorderRadius.circular(10.0),
                ),
                child: Text(
                  '# NFT生存法则',
                  style: TextStyle(fontSize: 12),
                ),
              ),
              Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
                Image.asset(
                  'static/images/share.png',
                  width: 15,
                ),
                SizedBox(
                  width: 5,
                ),
                Text('332'),
                Expanded(child: SizedBox()),
                Image.asset(
                  'static/images/aixin.png',
                  width: 15,
                ),
                SizedBox(
                  width: 5,
                ),
                Text('332'),
                Expanded(child: SizedBox()),
                Image.asset(
                  'static/images/sui.png',
                  width: 15,
                ),
                SizedBox(
                  width: 5,
                ),
                Text('332'),
                Expanded(child: SizedBox()),
                Image.asset(
                  'static/images/chat.png',
                  width: 15,
                ),
                SizedBox(
                  width: 5,
                ),
                Text('332'),
              ]),
              Expanded(child: SizedBox()),
              Padding(
                padding: EdgeInsets.symmetric(horizontal: 15, vertical: 15),
                child: Row(
                  children: [
                    Container(
                        width: 150,
                        alignment: Alignment.center,
                        height: 50,
                        decoration: BoxDecoration(
                            color: Color(0XFFF5F5F5),
                            borderRadius: BorderRadius.circular(50)),
                        child: GestureDetector(
                          onTap: () => {
                            Get.bottomSheet(
                                Padding(
                                  padding: EdgeInsets.symmetric(
                                      horizontal: 15, vertical: 15),
                                  child: Column(
                                    children: [
                                      Row(
                                        mainAxisAlignment:
                                            MainAxisAlignment.spaceBetween,
                                        children: [
                                          SizedBox(
                                            width: 16,
                                          ),
                                          Expanded(
                                              child: Align(
                                            child: Text(
                                              '拒绝理由',
                                              style: TextStyle(fontSize: 16),
                                            ),
                                          )),
                                          GestureDetector(
                                            onTap: () => {Get.back()},
                                            child: Image.asset(
                                              'static/close.png',
                                              width: 16,
                                              fit: BoxFit.fitWidth,
                                            ),
                                          )
                                        ],
                                      ),
                                      SizedBox(
                                        height: 10,
                                      ),
                                      Container(
                                        height: 150,
                                        decoration: BoxDecoration(
                                            borderRadius:
                                                BorderRadius.circular(10),
                                            color: Color(0XFFF5F5F5)),
                                        child: TextField(
                                          maxLines: null,
                                          style: TextStyle(fontSize: 12),
                                          decoration: InputDecoration(
                                            isCollapsed: true, //设置高度
                                            contentPadding: EdgeInsets.all(15),
                                            hintStyle: TextStyle(
                                                color: Color(0xff999999)),
                                            border:
                                                InputBorder.none, // 隐藏输入框默认边框
                                            hintText: '请输入拒绝理由...', // 提示文本
                                          ),
                                        ),
                                      ),
                                      Container(
                                        transform: Matrix4.translationValues(
                                            0.0, -20.0, 0.0),
                                        margin: EdgeInsets.only(right: 10),
                                        alignment: Alignment.centerRight,
                                        child: Text(
                                          '1/2',
                                          style: TextStyle(fontSize: 12),
                                        ),
                                      ),
                                      Expanded(child: SizedBox()),
                                      Container(
                                        alignment: Alignment.center,
                                        width: 280,
                                        height: 50,
                                        decoration: BoxDecoration(
                                          borderRadius:
                                              BorderRadius.circular((50)),
                                          gradient: LinearGradient(
                                            colors: [
                                              Color(0xff2189E7),
                                              Color(0xffBF67F8),
                                            ], // 定义颜色列表
                                            begin: Alignment.topLeft, // 渐变开始的位置
                                            end: Alignment
                                                .bottomRight, // 渐变结束的位置
                                          ),
                                        ),
                                        child: Text(
                                          '拒绝',
                                          style: TextStyle(
                                              fontSize: 16,
                                              color: Color(0XFFFFFFFF)),
                                        ),
                                      )
                                    ],
                                  ),
                                ),
                                shape: RoundedRectangleBorder(
                                  // 圆角设置:ml-citation{ref="7" data="citationList"}
                                  borderRadius: BorderRadius.vertical(
                                      top: Radius.circular(10)),
                                ),
                                backgroundColor: Colors.white)
                          },
                          child: Text(
                            '拒绝',
                            style: TextStyle(
                              fontSize: 16,
                            ),
                          ),
                        )),
                    Expanded(child: SizedBox()),
                    Container(
                      width: 150,
                      alignment: Alignment.center,
                      height: 50,
                      decoration: BoxDecoration(
                          gradient: LinearGradient(
                            colors: [
                              Color(0xff2189E7),
                              Color(0xffBF67F8),
                            ], // 定义颜色列表
                            begin: Alignment.topLeft, // 渐变开始的位置
                            end: Alignment.bottomRight, // 渐变结束的位置
                          ),
                          color: Color(0XFFF5F5F5),
                          borderRadius: BorderRadius.circular(50)),
                      child: Text(
                        '通过',
                        style:
                            TextStyle(fontSize: 16, color: Color(0XFFFFFFFF)),
                      ),
                    ),
                  ],
                ),
              )
            ],
          ),
        ));
  }
}
